package com.fengxing.ams.web.facade.mouble.plan;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

public interface IPlanDAO extends PagingAndSortingRepository<PlanVO, String>, JpaSpecificationExecutor<PlanVO>  {

	@Query(value = "SELECT * FROM zyt_major_plan WHERE college_id IS NOT NULL and major_id is not null and year=:year", nativeQuery=true)
	List<PlanVO> getCollegeCodeAll(@Param("year")Integer integer);

}
